/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.oa.action.process;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.oa.mapper.process.UserMapper;
public class UserAction extends BaseAction
{
    @Autowired(required=false)
	private UserMapper mapper;
    /**
    新增流程用户
    */
    
    public Map add() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        
        
        SQLList<SQLMap> selectActIdGroupList=mapper.selectActIdGroupList(params);
        SQLMap selectActIdGroupList_emt=selectActIdGroupList.getExistfirst();
        result.put("selectActIdGroupList", selectActIdGroupList_emt);
        
        return result;
    }
    /**
    修改流程用户
    */
    
    public Map edit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        
        
        SQLList<SQLMap> selectActIdUserById=mapper.selectActIdUserById(params);
        SQLMap selectActIdUserById_emt=selectActIdUserById.getExistfirst();
        result.put("selectActIdUserById", selectActIdUserById_emt);
        
        
        
        return result;
    }
    /**
    */
    
    public Object list() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        
        
        SQLList<SQLMap> UserList=mapper.UserList(params,pagination);
        UserList.setPagedListInfo(pagination);
        SQLMap UserList_emt=UserList.getExistfirst();
        result.put("UserList", UserList_emt);
        
        return UserList;
    }
    /**
    */
    
    public Map addSave() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        
        
        int insertActIdUser = mapper.insertActIdUser(params);
        result.put("insertActIdUser", insertActIdUser);
        
        return result;
    }
    /**
    */
    
    public Map selectUser() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        return result;
    }
    /**
    */
    
    public Map editSave() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        
        
        mapper.editSave(params);
        
        return result;
    }
    /**
    */
    
    public Map systemUserList() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        
        
        SQLList<SQLMap> selectUserByLoginName=mapper.selectUserByLoginName(params);
        SQLMap selectUserByLoginName_emt=selectUserByLoginName.getExistfirst();
        result.put("selectUserByLoginName", selectUserByLoginName_emt);
        
        
        SQLList<SQLMap> selectActIdUserList=mapper.selectActIdUserList(params);
        SQLMap selectActIdUserList_emt=selectActIdUserList.getExistfirst();
        result.put("selectActIdUserList", selectActIdUserList_emt);
        
        
        SQLList<SQLMap> selectUserList=mapper.selectUserList(params);
        SQLMap selectUserList_emt=selectUserList.getExistfirst();
        result.put("selectUserList", selectUserList_emt);
        
        return result;
    }
    /**
    */
    
    public Map export() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        
        
        SQLList<SQLMap> selectActIdUserList=mapper.selectActIdUserList(params);
        SQLMap selectActIdUserList_emt=selectActIdUserList.getExistfirst();
        result.put("selectActIdUserList", selectActIdUserList_emt);
        
        return result;
    }
    /**
    */
    
    public Map remove() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        
        
        mapper.remove(params);
        
        return result;
    }
}